ps_4_1
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb1[16], immediateIndexed
dcl_constantbuffer cb2[16], immediateIndexed
dcl_constantbuffer cb12[18], immediateIndexed
dcl_resource_texture2dms(0) (float,float,float,float) t7
dcl_resource_texture2dms(0) (float,float,float,float) t8
dcl_resource_texture2dms(0) (float,float,float,float) t9
dcl_resource_texture2dms(0) (uint,uint,uint,uint) t11
dcl_resource_texture2dms(0) (float,float,float,float) t12
dcl_input_ps linear sample v1.xyw
dcl_input_ps linear v2.xyzw
dcl_input_ps_sgv v3.x, sampleIndex
dcl_output o0.xyzw
dcl_temps 5
div r0.xy, v1.xyxx, v1.wwww
mul r0.xy, r0.xyxx, cb2[15].xyxx
ftoi r0.xy, r0.xyxx
mov r0.zw, l(0,0,0,0)
ldms r1.x, r0.xyww, t12.xyzw, v3.x
add r1.x, -r1.x, cb12[17].w
add r1.x, r1.x, l(1.000000e+000)
div r1.x, cb12[17].z, r1.x
div r1.yzw, v2.xxyz, v2.wwww
mad r2.xyz, r1.yzwy, r1.xxxx, cb1[15].xyzx
add r3.xyz, -r2.xyzx, cb12[0].xyzx
dp3 r1.x, r3.xyzx, r3.xyzx
rsq r3.w, r1.x
mul r3.xyz, r3.wwww, r3.xyzx
mad_sat r1.x, -r1.x, cb12[4].z, l(1.000000e+000)
add r3.w, -cb12[7].x, l(1.000000e+000)
mad r3.w, r3.w, r1.x, cb12[7].x
div r1.x, r1.x, r3.w
dp3 r3.w, r3.xyzx, -cb12[1].xyzx
mad_sat r3.w, r3.w, cb12[5].w, cb12[5].z
mul r1.x, r1.x, r3.w
mov r2.w, l(1.000000)
dp4 r2.x, r2.xyzw, cb12[6].xyzw
ge r2.x, r2.x, l(0.000000e+000)
and r2.x, r2.x, l(0x3f800000)
mul r1.x, r1.x, r2.x
lt r2.x, r1.x, l(1.000000e-006)
discard_nz r2.x
ldms r2.x, r0.xyww, t11.yxzw, v3.x
and r2.x, r2.x, l(8)
utof r2.x, r2.x
ge r2.x, r2.x, l(7.900000e+000)
ldms r2.yzw, r0.xyww, t7.wxyz, v3.x
mul r2.yzw, r2.yyzw, r2.yyzw
ldms r4.xy, r0.xyww, t9.xzyw, v3.x
mul r3.w, r4.x, r4.x
ldms r0.xyzw, r0.xyzw, t8.xyzw, v3.x
mul r4.xzw, r0.wwww, l(9.980469e-001, 0.000000e+000, 7.984375e+000, 6.387500e+001)
frc r4.xzw, r4.xxzw
mad r4.xz, -r4.zzwz, l(1.250000e-001, 0.000000e+000, 1.250000e-001, 0.000000e+000), r4.xxzx
mad r0.xyz, r0.xyzx, l(2.560000e+002, 2.560000e+002, 2.560000e+002, 0.000000e+000), r4.xzwx
add r0.xyz, r0.xyzx, l(-1.280000e+002, -1.280000e+002, -1.280000e+002, 0.000000e+000)
dp3 r0.w, r0.xyzx, r0.xyzx
rsq r0.w, r0.w
mul r0.xyz, r0.wwww, r0.xyzx
min r0.w, r3.w, l(1.000000e+000)
dp3 r3.w, r1.yzwy, r1.yzwy
rsq r3.w, r3.w
mul r1.yzw, r1.yyzw, r3.wwww
movc r2.x, r2.x, l(0), l(1.000000)
mul r1.x, r1.x, r2.x
mul r4.xzw, cb12[3].wwww, cb12[3].xxyz
dp3_sat r2.x, r0.xyzx, r3.xyzx
dp3_sat r0.x, -r1.yzwy, r0.xyzx
add r0.x, -r0.x, l(1.000000e+000)
mul r0.y, r0.x, r0.x
mul r0.y, r0.y, r0.y
mul r0.x, r0.x, r0.y
add r0.y, -r4.y, l(1.000000e+000)
mad r0.x, r4.y, r0.x, r0.y
mad r0.x, -r0.w, r0.x, l(1.000000e+000)
mul r0.x, r0.x, r2.x
mul r0.xyz, r0.xxxx, r2.yzwy
mul r0.xyz, r4.xzwx, r0.xyzx
mul r0.xyz, r1.xxxx, r0.xyzx
mul o0.xyz, r0.xyzx, cb2[14].zzzz
mov o0.w, l(1.000000)
ret